package com.jeffse.light.stream.core.data.backend;

import com.jeffse.light.stream.core.data.descriptor.stateDescriptor.StateDescriptor;
import net.sf.ehcache.Element;

import java.io.Serializable;

/**
 * 状态数据仓后端
 * @param <V>
 */
public interface StateBackends<V> extends Serializable {

    void update(StateDescriptor stateDescriptor, V v);

    void clear(StateDescriptor stateDescriptor);

    Element getState(StateDescriptor stateDescriptor);
}
